<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" />
    <!-- 全屏 -->
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <!-- 上方栏显示 -->
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <!-- 不自动识别号码 -->
    <meta name="format-detection" content="telephone=no">
    <!-- Include js plugin -->
    <title>订单支付</title>
    <link rel="stylesheet" href="/static/wap/skin/css/layout.css">
    <link rel="stylesheet" href="/static/wap/skin/css/demos.css">
    <script src="/static/wap/weui/js/jquery.min.js"></script>
    <script src="https://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
</head>
<script type="text/javascript">
$(function(){
    $("#wxpay").click(function(){
        function onBridgeReady(){
           WeixinJSBridge.invoke(
               'getBrandWCPayRequest', {
                   "appId" : "<{$data['appId']}>",     //公众号名称，由商户传入
                   "timeStamp":"<{$data['timeStamp']}>",         //时间戳，自1970年以来的秒数
                   "nonceStr" : "<{$data['nonceStr']}>", //随机串
                   "package" : "<{$data['package']}>",
                   "signType" : "<{$data['signType']}>",         //微信签名方式:
                   "paySign" : "<{$data['paySign']}>" //微信签名
               },
               function(res){
                   if(res.err_msg == "get_brand_wcpay_request:ok" ) {

                     window.location.href="/order/pay_success/<{$order['order_id']}>?wx_prepay_id=<{$wx_prepay_id}>";
                   }     // 使用以上方式判断前端返回,微信团队郑重提示:res.err_msg将在用户支付成功后返回    ok，但并不保证它绝对可靠。
               }
           );
        }

        if (typeof WeixinJSBridge == "undefined"){
           if( document.addEventListener ){
               document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false);
           }else if (document.attachEvent){
               document.attachEvent('WeixinJSBridgeReady', onBridgeReady);
               document.attachEvent('onWeixinJSBridgeReady', onBridgeReady);
           }
        }else{
           onBridgeReady();
        }
    })



})

</script>
<body>
<header class="brB">
	<div class="h_top">
    	<div class="hLeft"><a href="javascript:;" class="icoH icoReturn mt20"></a></div>
    	<div class="hCenter"><span class="tit c-3ac9af">提交订单</span></div>
    </div>
</header>
<div class="warp">
	<div class="fix b-FFFFFF oh p30 tac">
        <div class="pt50"><span class="c-FF0000 fs34">￥<{$order['payment_money_amount']|string_format:"%.2f"}></span></div>
    	<div class="pt30">
           <!--  <div class="icoSuccess"><span class="c-000000 fs34">恭喜您，支付成功！</span></div> -->
            <div class="icoSuccess"><span class="c-000000 fs34">提交订单成功！</span></div>
        <!--     <div class="pt20">您获得了<span class="c-FF0000">1230</span>积分</div>
            <div class="fs20">(积分可以在积分商城兑换商品)</div> -->
        </div>
        <div class="layout-box pt50 mt30">
           <!--  <a class="box-col c-40d064 tar" href="#">查看详情</a>
            <span class="w100"></span>
            <a class="box-col c-40d064 tal" href="#">回到首页</a> -->
			<div class="fs14">
				<span>订单号:<{$order['order_num']}></span>
				<span class="p-l10">请您在订单提交后<span style="color:#f98101;">7天</span>内完成付款，否则订单会自动取消！</span>
			</div>
        </div>

    </div>
  <div class="fix LH60">
  		<!-- <div class="fix p20 b-FFFFFF brB">
            <div class="layout-box">
                <div class="ith_img2">
                    <span class="mr20" style="height:4rem; width:6rem; background-image:url(skin/temp/340190_004.png)"></span>
                </div>
                <div class="box-col fs34">
                    <div class="mt20 h60 oh">财务主管财务核心管理技能</div>
                    <div class="c-FF0000">¥550</div>
                </div>
            </div>
        </div>-->
        <!--star体检人信息-->
        <!-- <div class="p20 b-FFFFFF">
            <div class="layout-box">
                <div>购买数量:</div>
                <div class="box-col">
                <span class="num_addjian r">
                        <input class="t_btn t_jian" id="jian" value="-" type="button">
                        <input class="t_txt t_num" value="3" id="num" type="text">
                        <input class="t_btn t_add" id="add" value="+" type="button">
                  </span>
              </div>
            </div>
        </div>  -->
        <!--end体检人信息-->
      	<!--star支付选择-->
        <div class="plr20 mt20 b-FFFFFF">
        	<ul class="fs30">
            	<li class="ptb20 brB">
                	<div class="layout-box">
                            <label class="box-col ipRadio"><input name="zdRadio" type="radio" checked/><span class="roundedOne"><i></i></span>微信支付</label>
                    </div>
                </li>
            	<!-- <li class="ptb20">
                	<div class="layout-box">
                            <label class="box-col ipRadio"><input name="zdRadio" type="radio" checked/><span class="roundedOne"><i></i></span>银行卡支付</label>
                    </div>
                </li> -->
            </ul>
        </div>
        <!--end支付选择-->
    	<div class="fix mt20 b-FFFFFF">
        	<div class="p20 tac layout-box LH80">
        		<a class="box-col b-ff5a00 c-FFFFFF r10" href="javascript:;" id="wxpay" >确认付款</a>
        	</div>
        </div>
    </div>

</div>
<!-- <div class="buyShowBox" style="display:none;">
	<div class="buy_mask"></div>

	<div class="buy_dialog b-EEEEEE notification">
		<div class="b-FFFFFF plr20 tac fs34 mb20">
			<div class="h80 ptb10 ir">
				<i class="by_closed">&times;</i>支付金额<span class="c-FF0000">&yen;<{$order[ 'payment_money_amount']|string_format: "%.2f"}></span>
			</div>
		</div>

		<div class="plr20 mt20 b-FFFFFF">
			<form action="" method="get">
				<ul class="fs30">
					<li class="ptb20 brB">
					<div class="layout-box">
                    <label class="box-col ipRadio"><input name="zdRadio" type="radio"/><span class="roundedOne"><i></i></span>微信支付</label>
					</div>
				  	</li>
					<li class="ptb20">
					<div class="layout-box">
                    <label class="box-col ipRadio"><input name="zdRadio" type="radio" checked/><span class="roundedOne"><i></i></span>银行卡支付</label>
					</div>
					</li>
				</ul>
			</form>
		</div>

   	  	<div class="fix mt20 b-FFFFFF">
        	<div class="p20 tac layout-box LH80 mb20">
        		<a class="box-col b-ff5a00 c-FFFFFF r10" href="#" id="okzhifu">确认付款</a>
        	</div>
        </div>
	</div>

</div> -->
<!-- body 最后 -->
<script src="/static/wap/weui/js/jquery.min.js"></script>
<script src="/static/wap/weui/js/jquery-weui.min.js"></script>
<script src="/static/wap/skin/js/demos.js"></script>
<script>
$(function(){
	/*$("#okzhifu").click(function(){
		$(".buyShowBox").show();;
	})
	//关闭弹窗
	$('.by_closed').click(function(){
		$(".buyShowBox").hide();
	});*/
})
</script>
</body>
</html>
